﻿<%@ Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>

<%@ Page Language="c#" CodeBehind="MailConfig.aspx.cs" AutoEventWireup="false" Inherits="CIS.MailConfigWeb"
    ValidateRequest="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <title>MailConfig</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <style type="text/css">
        @import url( ../css/ppt.css );
    </style>
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <!--begin-->
    <table cellpadding="0" id="table2">
        <tr>
            <td>
                <img src="../images/title_mailsetting.jpg" alt="" />
            </td>
            <td>
            </td>
            <td>
                <img src="../images/title_right.jpg" alt="" />
            </td>
        </tr>
        <tr>
            <td colspan="3">
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <table cellpadding="0" id="table1">
                    <tr>
                        <td>
                            <img src="../images/table_c1_r1.jpg" alt="" />
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                            <img src="../images/table_c3_r1.jpg" alt="" />
                        </td>
                        <td>
                            <img src="../images/table_c4_r1.jpg" alt="" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <img src="../images/table_c1_r3.jpg">
                        </td>
                        <td colspan="3">
                            <!--*********-->
                            <table cellspacing="0" cellpadding="0">
                                <tbody>
                                    <tr id="MessageRow" runat="server">
                                        <td colspan="2">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td nowrap>
                                            &nbsp;&nbsp;系统邮箱帐号：
                                        </td>
                                        <td>
                                            <asp:TextBox onkeypress="var email=this.value; var index=email.indexOf('@'); if(index!=-1){txtSmtpAccount.value = email.substr(0,index);}"
                                                ID="txtEmail" runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator1"
                                                    runat="server" Display="Dynamic" ControlToValidate="txtEmail" ErrorMessage="系统邮箱帐号"></asp:RequiredFieldValidator><asp:RegularExpressionValidator
                                                        ID="RegularExpressionValidator1" runat="server" Display="Dynamic" ControlToValidate="txtEmail"
                                                        ErrorMessage="电子邮箱格式错误" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td nowrap>
                                            &nbsp;&nbsp;SMTP服务器：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtSmtpServer" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                                                ID="RequiredFieldValidator2" runat="server" Display="Dynamic" ControlToValidate="txtSmtpServer"
                                                ErrorMessage="SMTP服务器为空"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td nowrap>
                                            &nbsp;&nbsp;SMTP帐号密码：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtSmtpPassword" runat="server" TextMode="Password" ReadOnly="False"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" Display="Dynamic"
                                                ControlToValidate="txtSmtpPassword" ErrorMessage="SMTP帐号密码为空"></asp:RequiredFieldValidator>(一般与POP3密码一致)
                                            <asp:Label ID="lblPasswordSet" runat="server" Text="" ForeColor="Blue"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td nowrap>
                                            &nbsp;&nbsp;SMTP认证模式：
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="ddlAuthMode" runat="server">
                                                <asp:ListItem Value="None">None</asp:ListItem>
                                                <asp:ListItem Value="Login">Login</asp:ListItem>
                                                <asp:ListItem Value="Plain">Plain</asp:ListItem>
                                                <asp:ListItem Value="CramMD5">CramMD5</asp:ListItem>
                                                <asp:ListItem Value="DigestMD5">DigestMD5</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            <asp:Button ID="btnSave" Text="保存" runat="server"></asp:Button>
                                        </td>
                                    </tr>
                                    <!--tr>
                                                <td>&nbsp;&nbsp;Email模版：</td>
                                                <td>
                                                    <asp:DropDownList ID="ddlMailTemplateName" Runat="server" AutoPostBack="True">
                                                        <asp:ListItem>--Choose Template--</asp:ListItem>
                                                        <asp:ListItem Value="UploadPost.Subject.vm">UploadPost.Subject</asp:ListItem>
                                                        <asp:ListItem Value="UploadPost.Body.vm">UploadPost.Body</asp:ListItem>
                                                        <asp:ListItem Value="CommentPost.Subject.vm">CommentPost.Subject</asp:ListItem>
                                                        <asp:ListItem Value="CommentPost.Body.vm">CommentPost.Body</asp:ListItem>
                                                    </asp:DropDownList>&nbsp;<asp:Button ID="btnSaveTemplate" Runat="server" Text="Save Template" CausesValidation="False"></asp:Button>
                                                </td>
                                            </tr-->
                                    <!--tr>
                                                <td>&nbsp;</td>
                                                <td>
                                                    <FTB:FREETEXTBOX id="ftbBody" runat="server" SupportFolder="~/CIS/FreeTextBox/"></FTB:FREETEXTBOX>
                                                </td>
                                            </tr-->
                                </tbody>
                            </table>
                            <!--*********-->
                        </td>
                        <td>
                            <img src="../images/table_c4_r2.jpg" alt="" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <img src="../images/table_c1_r4.jpg" alt="" />
                        </td>
                        <td>
                            <img src="../images/table_c2_r4.jpg" alt="" />
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                            <img src="../images/table_c4_r4.jpg" alt="" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <!--end-->
    </form>
</body>
</html>
